package cn.tj.wenda.cloud.entity;

public class ResponseBean {

    /**
     * bool型 EXT全局性设置
     */
    private boolean success = true;

    /**
     * 错误标记，等于0为无错误，errMsg须为空；不等于0代表后端处理出错，
     * errMsg中为错误信息。
     */
    private String err="0";
    /**
     * 错误信息，err不等于0时传输错误信息，err=0时为空字符串
     */
    private String errMsg;
    /**
     * 分页时用于传输当前页码
     */
    private int pageIndex;
    /**
     * 分页时用于传输分页大小
     */
    private int pageSize;
    /**
     * 分页时用于传输总页数
     */
    private int pageCount;
    /**
     * 分页时用于传输总记录数
     */
    private int recordCount;
    /**
     * 用于传输业务数据
     */
    private Object data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErr() {
        return err;
    }

    public void setErr(String err) {
        this.err = err;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }
}
